import { request } from '@/utils'

export default {
  uploadMidi: ({ file, name }) => {
    const formData = new FormData()
    formData.append('mid', file)
    formData.append('name', name)
    return request.post('/midi', formData)
  },

  uploadMml: ({ source, name }) => {
    return request.post(`/mml`, { source, name })
  }
}
